package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/7/28 下午5:17
 */
public class RegisterResult implements Parcelable {
    /**
     * uid : 9
     * usermobile : 18616707790
     * nicename : 牛娃同学
     * is_integral : 1
     * avatar : http://api.niuwaketang.com/public/avatar/avatar.png
     * last_login_ip : 127.0.0.1
     * logincode : VxUJRlkOCQ4
     */

    private String uid;
    private String usermobile;
    private String nicename;
    private String is_integral;
    private String avatar;
    private String last_login_ip;
    private String logincode;

    public String getUid() { return uid;}

    public void setUid(String uid) { this.uid = uid;}

    public String getUsermobile() { return usermobile;}

    public void setUsermobile(String usermobile) { this.usermobile = usermobile;}

    public String getNicename() { return nicename;}

    public void setNicename(String nicename) { this.nicename = nicename;}

    public String getIs_integral() { return is_integral;}

    public void setIs_integral(String is_integral) { this.is_integral = is_integral;}

    public String getAvatar() { return avatar;}

    public void setAvatar(String avatar) { this.avatar = avatar;}

    public String getLast_login_ip() { return last_login_ip;}

    public void setLast_login_ip(String last_login_ip) { this.last_login_ip = last_login_ip;}

    public String getLogincode() { return logincode;}

    public void setLogincode(String logincode) { this.logincode = logincode;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uid);
        dest.writeString(this.usermobile);
        dest.writeString(this.nicename);
        dest.writeString(this.is_integral);
        dest.writeString(this.avatar);
        dest.writeString(this.last_login_ip);
        dest.writeString(this.logincode);
    }

    public RegisterResult() {}

    protected RegisterResult(Parcel in) {
        this.uid = in.readString();
        this.usermobile = in.readString();
        this.nicename = in.readString();
        this.is_integral = in.readString();
        this.avatar = in.readString();
        this.last_login_ip = in.readString();
        this.logincode = in.readString();
    }

    public static final Creator<RegisterResult> CREATOR = new Creator<RegisterResult>() {
        @Override
        public RegisterResult createFromParcel(Parcel source) {return new RegisterResult(source);}

        @Override
        public RegisterResult[] newArray(int size) {return new RegisterResult[size];}
    };

    @Override
    public String toString() {
        return "RegisterResult{" +
                "uid='" + uid + '\'' +
                ", usermobile='" + usermobile + '\'' +
                ", nicename='" + nicename + '\'' +
                ", is_integral='" + is_integral + '\'' +
                ", avatar='" + avatar + '\'' +
                ", last_login_ip='" + last_login_ip + '\'' +
                ", logincode='" + logincode + '\'' +
                '}';
    }
}
